import request from '../../utils/request'
import {getToken} from '../../utils/token'
const api_name = "view"
const group_name = "oss"

/**获取用户菜单资源 */
export function getViewList() {
    return request({
        url: `/${group_name}/${api_name}/getViewByUser`,
        method: 'post'
    })
}

/**获取一级菜单目录 */
export function getViewResouce() {
    return request({
        url: `/${group_name}/${api_name}/getViewByUser`,
        method: 'GET',
        headers: {
            "OSS-Token": getToken("ossToken")
        }
    })
}